package top.littlejiang.onlinexam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import top.littlejiang.onlinexam.common.utils.DateUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 考试工作关系表
 * </p>
 *
 * @author chen
 * @since 2021-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("OlexamExamWork")
public class OlexamExamWork implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 考试id
     */
    private String fkExamUuid;

    @TableField(exist = false)
    private String fkExamName;

    /**
     * 工作类型，监考，阅卷
     */
    private String workType;

    /**
     * 用户id
     */
    private Integer fkUserId;

    /**
     * 用户名
     */
    private String fkUserName;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN_19)
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN_19, timezone="GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN_19)
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN_19, timezone="GMT+8")
    private Date updateTime;


}
